/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.enums.base;

import com.dian.common.enums.EnumMessage;
/**
 * 分类表-分类枚举
 *
 * @author Jinag Run
 * @email 1685269193qq.com
 * @date 2019-05-22 23:47:42
 */
public enum Class_ClassTypeEnum implements EnumMessage{

    /**
     * 商品类型 PRODUCT 1
     */
    PRODUCT(1,"商品类型"),

    /**
     * 用户类型 USER 2
     */
    USER(2,"用户类型"); 

    private int code;
    private String desc;

    Class_ClassTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public int getValue() {return code;}

    @Override
    public String getDesc() {return desc;}
}
